Hello Quarto
What is Quarto?
Quarto® is an open-source scientific and technical publishing system built on Pandoc
Quarto integrates what has been learned over the last 10-years from RMarkdown into one system for creating and publishing reproducible documents.
Consistent implementation of attractive and handy features across outputs
More accessible defaults as well as better support for accessibility
Guardrails, particularly helpful for new learners: YAML completion, code option completion
Support for other languages like Python, Julia, and more
---
title: "ggplot2 demo"
author: "Norah Jones"
date: "May 22nd, 2021"
format:
html:
code-fold: true
---
## Air Quality
@fig-airquality further explores the impact of temperature
on ozone level.
```{r}
#| label: fig-airquality
#| fig-cap: Temperature and ozone level.
#| warning: false
library(ggplot2)
ggplot(airquality,
mapping = aes(x = Temp, y = Ozone)
) +
geom_point() +
geom_smooth(method = "loess"
)
```The YAML metadata or header is:
processed in many stages of the rendering process and can influence the final document in many different ways. It is placed at the very beginning of the document and is read by each of Pandoc, Quarto and
knitr. Along the way, the information that it contains can affect the code, content, and the rendering process.
# A tibble: 3 × 2
species mean_weight
<fct> <dbl>
1 Adelie 3701.
2 Chinstrap 3733.
3 Gentoo 5076.
{r} – notates what language the code is written in
#| – defines code chunk options
Quarto is based on Pandoc and uses its variation of markdown as its underlying document syntax. Markdown is a plain text format that is designed to be easy to write, and, even more importantly, easy to read
| Markdown Syntax | Output |
|---|---|
|
italics and bold |
|
superscript2 / subscript2 |
|
|
|
verbatim code |
| Markdown Syntax | Output |
|---|---|
|
Header 1 |
|
Header 2 |
|
Header 3 |
|
Header 4 |
|
Header 5 |
|
Header 6 |
Notice!
html: is now on a new line
this line is below format: and indented
the HTML formatting options are on their own line
these lines are below html: and indented
The exhaustive list of YAML options that can be used for HTML documents can be found here: https://quarto.org/docs/reference/formats/html.
Using this resource add the following to your document:
Afterward, add at least one additional YAML option of your choosing!